/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;

/**
 *
 * @author Andrés Felipe
 */

public class EmailPyme implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer idemail;
    
    private String host;
   
    private String port;
    
    private String username;
    
    private String password;
   
    private Pyme pymeidentification;

    public EmailPyme() {
    }

    public EmailPyme(Integer idemail) {
        this.idemail = idemail;
    }

    public EmailPyme(Integer idemail, String host, String port, String username, String password) {
        this.idemail = idemail;
        this.host = host;
        this.port = port;
        this.username = username;
        this.password = password;
    }

    public Integer getIdemail() {
        return idemail;
    }

    public void setIdemail(Integer idemail) {
        this.idemail = idemail;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Pyme getPymeidentification() {
        return pymeidentification;
    }

    public void setPymeidentification(Pyme pymeidentification) {
        this.pymeidentification = pymeidentification;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idemail != null ? idemail.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EmailPyme)) {
            return false;
        }
        EmailPyme other = (EmailPyme) object;
        if ((this.idemail == null && other.idemail != null) || (this.idemail != null && !this.idemail.equals(other.idemail))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.EmailPyme[ idemail=" + idemail + " ]";
    }
    
}
